package com.tuling.service;

import com.tuling.common.Result;
import com.tuling.pojo.QuestionAnswer;
import com.tuling.pojo.excel.QuestionAnswerExcel;
import com.tuling.pojo.vo.PersonQuestionAnswerVO;
import com.tuling.pojo.vo.QuestionAnswerVO;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface QuestionAnswerService {

    /**
     * 上传答案，并返回其它学院答案
     * @param userName
     * @param password
     * @param answer
     * @return
     */
    Result<Map<String, QuestionAnswerVO>> uploadAnswer(String userName, String password, String answer);

    /**
     * Excel导出结果分析
     */
    Result<List<QuestionAnswerExcel>> export(String userName, String password, String type);

    /**
     * 组员答案评分备注
     */
    Result<PersonQuestionAnswerVO> score(Long id, Integer scoreNum, String remark, String userName, String password);

    /**
     * 每日答案导出
     */
    Result<List<QuestionAnswerExcel>> dailyPersonExport(String data);
}
